<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>会员中心</title>
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1">
<meta name="format-detection" content="telephone=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<script src="__PUBLIC__/wap/js/flexible.js"></script>
<link href="__PUBLIC__/wap/css/icons.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" type="text/css" href="__PUBLIC__/wap/css/base.css" />
<link rel="stylesheet" type="text/css" href="__PUBLIC__/wap/css/member.css" />
	<link href="__PUBLIC__/wap/css/rest.css"  rel="stylesheet">
	<style type="text/css">
		.change_back_img{
			position: fixed;
			background-color:#eeeeee;
			border-radius: 2px;
			width:80px;
			height:20px;
			left: 70%;
			top:200px;
			display:none
		}
	</style>
</head>
<body class="member">
<div class="top">
	<div class="mallbg" style=" background-image:url(__PUBLIC__/wap/img/logo.png);">
		<div class="change_back_img">
			更换背景图
		</div>
	</div>
	<div class="mall person"	>
		<div class="avatar floatLft">
			<a href="{:U('wap/member/setphoto')}">
			<span style="background:url({$data.member_logo|get_member_logo_default}) #fff" class="bgcover"></span>
			</a>
		</div>
	</div>
	<div class="shopinfo person">
		<ul>
			<li><a href="{:U('wap/member/wallet',array('type'=>1))}"><i class="iconfont">&#xe643</i> 积分<span class="num green">{$MemberDetail.points}</span></a></li>
			<li><a href="{:U('wap/member/wallet')}"><i class="iconfont">&#xe62b</i> 余额<span class="num green">{$MemberDetail.balance|floor}</span></a></li>
			<li><a  href="{:U('wap/collect/index')}"><i class="iconfont">&#xe62d</i> 收藏<span class="num green">{$MemberDetail.count_collect}</span></a></li>
			</a>
		</ul>
		<div class="clearfix">
		</div>
	</div>
</div>
<div class="step person">
	<div class="field">
		<div class="list">
			<div class="title">

					<a  href="{:U('wap/goodsorder/index')}">
				<i class="hbFntWes">&#xf10c</i><span>我的订单</span> <span class="floatRgt gray">全部订单 <i class="iconfont">&#xe611</i></span>
				</a>
			</div>
		</div>
		<ul>
			<li>
				<a href="{:U('wap/goodsorder/index',array('order_state'=>0))}">
					<if condition="$member_count.order1 gt 0">
						<b >{$member_count.order1}</b>
					</if>
					<i class="iconfont">&#xe626</i>
					<span>待付款</span>
				</a>
			</li>
			<li>
				<a href="{:U('wap/goodsorder/index',array('order_state'=>2))}">
					<if condition="$member_count.order2 gt 0">
						<b>{$member_count.order2}</b>
					</if>
					<i class="iconfont">&#xe646</i>
					<span>待发货</span>
				</a>
			</li>
			<li>
				<a href="{:U('wap/goodsorder/index',array('order_state'=>3))}">
					<if condition="$member_count.order3 gt 0">
						<b>{$member_count.order3}</b>
					</if>
					<i class="iconfont">&#xe632</i>
					<span>待收货</span>
				</a>
			</li>
			<li>
				<a href="{:U('wap/goodsorder/index',array('order_state'=>3))}">
					<if condition="$member_count.order3 gt 0">
						<b>{$member_count.order3}</b>
					</if>
					<i class="iconfont">&#xe63d</i>
					<span>待评价</span>
				</a>
			</li>
		</ul>
		<div class="clearfix">
		</div>
	</div><div class="list mgt20"><div class="title">
				<a href="#"><i class="hbFntWes">&#xf10c</i><span>店铺管理中心</span> <i class="iconfont floatRgt">&#xe611</i></a>
			</div>
			<div class="title">
				<a href="{:U('wap/member/setup')}"><i class="hbFntWes">&#xf10c</i><span>个人设置</span> <i class="iconfont floatRgt">&#xe611</i></a>
			</div>
			<div class="title">
				<a href="{:U('wap/cart/index')}"><i class="hbFntWes">&#xf10c</i><span>我的菜篮</span>  <i class="iconfont floatRgt">&#xe611</i></a>
			</div>

			<div class="title">
				<a href="{:U('wap/address/index')}"><i class="hbFntWes">&#xf10c</i><span>收货地址</span>  <i class="iconfont floatRgt">&#xe611</i></a>
			</div><div class="title">
				<a href="{:U('wap/member/cashapply')}"><i class="hbFntWes">&#xf10c</i><span>提现</span>  <i class="iconfont floatRgt">&#xe611</i></a>
			</div>
		</div>
</div>
<div class="bottomside">
	<a href="{:U('wap/start/index')}" class="btn1 btnsF34">升级成会员</a><span>{$data.member_name}</span> <a href="javascript:void(0);" class="btn_out" mars_sead="logout_btn">退出</a>
</div>
<<!--include file="Public/footer" />-->

<include file="Public/wap_javascript" />

<!--微信分享-->
<include file="Public/share_weixin" />


<script type="text/javascript">
	$(function(){
		$('.btn_out').click(function(){
			layer.msg("退出成功。",{icon:6},function(){
				window.location.href="<?php echo U('Wap/Login/loginout'); ?>";
			});
		});
		//点击背景获取上传背景的按钮
		$('.mallbg').click(function () {
			if($(".change_back_img").css("display")=="none"){
				$(".change_back_img").show(200);
			}else{
				$(".change_back_img").hide();
			}
		});
		//跳转至背景图上传页面
		$(".change_back_img").click(function () {
			window.location.href="<?php echo U('wap/member/setbackimg'); ?>"
		});
	})

</script>
<!--抽奖-->
<include file="Public/draw"/>
<!--抽奖-->
<script type="text/javascript">
	var  binding_is_check=0;// 重复再次弹出 1是 0否
	var  binding_page='home';// //绑定验证页面
</script>
<!--绑定-->
<include file="Public/binding_phone"/>
<!--绑定-->
<script src="__PUBLIC__/wap/BarWars/js/ProgressBarWars.js"></script>
<script>
	var vip_i='<?php echo $vip_i; ?>';
	var vd=$("#vader").ProgressBarWars({porcentaje:vip_i,estilo:"vader",alto:"10px"});
</script>
</body>
</html>